package domin;

import lombok.*;

import java.io.Serializable;
import java.util.Collection;

@Setter
@Getter
@NoArgsConstructor
@ToString
public final class Role implements Comparable<Role>, Serializable {
	private Integer id;
	private String role;

	public Role(String role){
		this.role = role;
	}
	public Role(Integer id, String role) {
		this.id = id;
		this.role = role;
	}

	@Override
	public int compareTo(domin.Role o) {
		return this.id - o.id;
	}
}
